<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class author extends Model
{
    protected $table = 'author';
//    绑定主键
    protected $primaryKey = 'id';
//    定义禁止操作的时间
    public $timestamps = false;
//    设置允许写入的数据字段
    protected $fillable = ['*'];
//设置排除入库的字段
//    protected $guarded = [];
}
